package com.base.pig.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * @ProjectName intelligent-city
 * @Package com.pig4cloud.pig.lab.entity
 * @ClassName ScLayer
 * @Description TODO
 * @Company Lab
 * @Author ZhangZhY
 * @Date 2020/6/23 10:31
 * @UpdateUser
 * @UpdateDate
 * @UpdateRemark
 * @Version 1.0.0
 */
@Data
@JsonInclude
public class ScLayer extends Model<ScLayer> {

    /**
     * 主键id
     */
    @TableId(value = "id" ,type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;
    /**
     * 父ID(-1：祖父级节点)
     */
    private Long pid;
    /**
     * 名称
     */
    private String name;
    /**
     * 显示名称
     */
    private String label;
    /**
     * 类型 0：图层
     */
    private int type;
    /**
     * 备用
     */
    private String beiyong;
    /**
     * 备用字
     */
    private String beiyongzi;
    /**
     * 备用字符
     */
    private String beiyongzifu;
    /**
     * 排序
     */
    private int seq;
}
